.class Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$30;)V
    .registers 2
    .param p1, "this$1"    # Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    .prologue
    .line 1248
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 3
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 1252
    const-string v0, "favApp failure"

    invoke-static {v0}, Lcom/zuiapps/suite/utils/log/LogUtil;->e(Ljava/lang/String;)V

    .line 1253
    const v0, 0x7f0c0071

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 1254
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->resetRequest()V
    invoke-static {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3000(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V

    .line 1255
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 1248
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 7
    .param p1, "result"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 1259
    const-string v1, "favApp success"

    invoke-static {v1}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;)V

    .line 1260
    invoke-virtual {p1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;)V

    .line 1261
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->resetRequest()V
    invoke-static {v1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3000(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V

    .line 1262
    const-string v1, "fav_status"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v0

    .line 1263
    .local v0, "favStatus":I
    if-ne v0, v2, :cond_3b

    .line 1265
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v1, v2}, Lcom/brixd/niceapp/model/BaseAppModel;->setFavored(Z)V

    .line 1266
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->updateFavStatus(Z)V
    invoke-static {v1, v2}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3500(Lcom/brixd/niceapp/activity/BaseDetailActivity;Z)V

    .line 1267
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->onFavAppSuccess()V

    .line 1276
    :cond_34
    :goto_34
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iput-boolean v2, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mIsDirty:Z

    .line 1277
    return-void

    .line 1269
    :cond_3b
    if-nez v0, :cond_34

    .line 1271
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v1, v3}, Lcom/brixd/niceapp/model/BaseAppModel;->setFavored(Z)V

    .line 1272
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->updateFavStatus(Z)V
    invoke-static {v1, v3}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3500(Lcom/brixd/niceapp/activity/BaseDetailActivity;Z)V

    .line 1273
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$30;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->onUnFavAppSuccess()V

    goto :goto_34
.end method
